package com.shensi.adminCollect.service.customer;

import com.shensi.adminCollect.domain.customer.CustomerCardSetting;
import com.shensi.adminCollect.domain.customer.CustomerCardSettingDetail;
import com.shensi.adminCollect.vo.customer.CalPresentAmt;

import java.math.BigDecimal;
import java.util.List;

/**
 * 客户电子会员卡充值优惠设置明细Service接口
 *
 * @author qujia
 * @date 2021-04-06
 */
public interface ICustomerCardSettingDetailService
{
    /**
     * 查询客户电子会员卡充值优惠设置明细
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 客户电子会员卡充值优惠设置明细
     */
    public CustomerCardSettingDetail selectCustomerCardSettingDetailById(Long id);

    /**
     * 查询客户电子会员卡充值优惠设置明细列表
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 客户电子会员卡充值优惠设置明细集合
     */
    public List<CustomerCardSettingDetail> selectCustomerCardSettingDetailList(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 新增客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int insertCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 修改客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int updateCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 批量删除客户电子会员卡充值优惠设置明细
     *
     * @param ids 需要删除的客户电子会员卡充值优惠设置明细ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailByIds(Long[] ids);

    /**
     * 删除客户电子会员卡充值优惠设置明细信息
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailById(Long id);

    /**
     * 电子会员卡积分规则明细
     * @param customerCardSetting
     * @return
     */
    public List<CustomerCardSettingDetail> listDetailInfo(CustomerCardSetting customerCardSetting);

    Integer updateStatus(String status, Long[] ids);

    public CalPresentAmt calPresentAmt(String cardOilsType, BigDecimal amt, Long stationId,Long enterpriseId, String payType,boolean checkVipDay);

    public boolean checkEffectiveTime(CustomerCardSettingDetail cardDetail);

}
